<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

namespace T4\OUTPUT;

class JSON extends \T4\Output {
    
    public function headers() {
        header('Content-Type: application/json; charset=UTF-8');
    }

    public function prepare($data) {
        return json_encode($data);
    }
    
}